gint x_align, gint y_align,
GdkRgbCmap *cmap);
-static const gchar *const visual_names[] =
-{
- "static gray",
- "grayscale",
- "static color",
- "pseudo color",
- "true color",
- "direct color",
-};
-
#define STAGE_ROWSTRIDE (GDK_SCRATCH_IMAGE_WIDTH * 3)
/* Some of these fields should go, as they're not being used at all. (?)
pseudo = (visual->type == GDK_VISUAL_PSEUDO_COLOR || visual->type == GDK_VISUAL_TRUE_COLOR);
if (gdk_rgb_verbose)
- g_print ("Visual type = %s, depth = %d, %x:%x:%x%s; score=%x\n",
- visual_names[visual->type],
+ g_print ("Visual type = %d, depth = %d, %x:%x:%x%s; score=%x\n",
+ visual->type,
visual->depth,
visual->red_mask,
visual->green_mask,
byte_order = image_info->visual->byte_order;
if (gdk_rgb_verbose)
- g_print ("Chose visual type=%s depth=%d, image bpp=%d, %s first\n",
- visual_names[image_info->visual->type], image_info->visual->depth,
+ g_print ("Chose visual type=%d depth=%d, image bpp=%d, %s first\n",
+ image_info->visual->type, image_info->visual->depth,
bpp, byte_order == GDK_LSB_FIRST ? "lsb" : "msb");
#if G_BYTE_ORDER == G_BIG_ENDIAN
if (!conv)
{
- g_warning ("Visual type=%s depth=%d, image bpp=%d, %s first\n"
+ g_warning ("Visual type=%d depth=%d, image bpp=%d, %s first\n"
"is not supported by GdkRGB. Please submit a bug report\n"
"with the above values to bugzilla.gnome.org",
- visual_names[vtype], depth, bpp,
+ vtype, depth, bpp,
byte_order == GDK_LSB_FIRST ? "lsb" : "msb");
exit (1);
}
{
GSList *formats = gdk_pixbuf_get_formats ();
GSList *tmp_list;
- static gboolean found_svg = FALSE;
- static gboolean value_known = FALSE;
+ static gint found_svg = -1;
- if (value_known)
+ if (found_svg != -1)
return found_svg;
-
+
+ found_svg = FALSE;
for (tmp_list = formats; tmp_list && !found_svg; tmp_list = tmp_list->next)
{
gchar **mime_types = gdk_pixbuf_format_get_mime_types (tmp_list->data);
}
g_slist_free (formats);
- value_known = TRUE;
return found_svg;
}